﻿// MT199




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category1
{
  public class MT199 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT199.U0002);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Related Reference")]
    public Tag21 RelatedReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT199.U0004);
      }
    }

    [Description("Related Reference")]
    public Tag21 Tag21_RelatedReference
    {
      get
      {
        return this.RelatedReference_21;
      }
    }

    [Description("Narrative")]
    public Tag79 Narrative_79
    {
      get
      {
        return new Tag79((SwiftElement) this, 0, (SwiftDefinitionElement) MT199.U0006);
      }
    }

    [Description("Narrative")]
    public Tag79 Tag79_Narrative
    {
      get
      {
        return this.Narrative_79;
      }
    }

    public MT199()
      : base(true)
    {
    }

    public MT199(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT199.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT199.MessageDefinition = new SwiftMessageDefinition("MT199", "Free Format Message");
      MT199.U0002 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT199.U0002.TagName = ":20:";
      MT199.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT199.U0002.Elements.Add((SwiftDefinitionElement) MT199.U0003);
      MT199.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT199.U0002);
      MT199.U0004 = new SwiftTagDefinition("RelatedReference_21", "Related Reference");
      MT199.U0004.TagName = ":21:";
      MT199.U0004.Mandatory = false;
      MT199.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT199.U0004.Elements.Add((SwiftDefinitionElement) MT199.U0005);
      MT199.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT199.U0004);
      MT199.U0006 = new SwiftTagDefinition("Narrative_79", "Narrative");
      MT199.U0006.TagName = ":79:";
      MT199.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT199.U0006);
    }
  }
}
